// import { StrictMode } from 'react'
// import { createRoot } from 'react-dom/client'
// import './index.css'
// import App from './App.tsx'
//
// createRoot(document.getElementById('root')!).render(
//   <StrictMode>
//     <App />
//   </StrictMode>,
// )

import React from 'react';
import ReactDOM from 'react-dom';
import {createRoot} from 'react-dom/client'
import App from './App';
import {ESObjectsManager} from 'earthsdk3';
import {ESUeViewer} from 'earthsdk3-ue';
import {ESCesiumViewer} from 'earthsdk3-cesium';

// 创建 ESObjectsManager 实例
const objm = new ESObjectsManager(ESUeViewer, ESCesiumViewer);

// 将 objm 暴露到全局窗口对象，方便调试和组件中使用
// @ts-ignore
window.g_objm = objm;

// 创建应用实例并挂载
createRoot(document.getElementById('root')!).render(<App/>);